package com.example.controller;

import com.example.mapper.ViruMapper;
import lombok.RequiredArgsConstructor;
import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequiredArgsConstructor
public class ViruController extends BaseController {
    private static final Logger logger = LoggerFactory.getLogger(ViruController.class);

    final ViruMapper viruMapper;

    @RequestMapping("list")
    @ResponseBody
    public Object list(int page) {
        Integer offset = page2Limit(page);
        return offset;
    }
}
